'use strict';
//节点类型 1 普通场景节点 2 多人场景节点  3 聊天服务器节点

module.exports = {
    development: {
        serverConfig: {
            serverId: 1,
        },
        gateConfig: {
            ip: '0.0.0.0',
            port: 12345,
        },
        rootSerConfig: {
            serverId: 1,
            ip: '127.0.0.1',
            port: 12341,
        },
        nodeConfig: [
            {
                type: 1 /* NORMAL */,
                name: 'scene1',
                path: 'D:/code/words/server/sceneSer/nodeApp.js' //启动路径
            }, {
                type: 1 /* NORMAL */,
                name: 'scene2',
                path: ''
            }, {
                type: 2 /* MULTI */,
                name: 'dungeon',
                path: ''
            }, {
                type: 3 /* CHAT */,
                name: 'chat',
                path: ''
            }, {
                type: 4 /* TRADE */,
                name: 'trade',
                path: ''
            }],
        userSerConfig: {
            ip: '127.0.0.1',
            port: 12340,
            verification: 'asdfzxcv12345'
        },
        dbConfig: {
            dbName: 'words',
            port: 27017,
            host: 'localhost'
        }
    },
    production: {
        serverConfig: {
            serverId: 1,
        },
        gateConfig: {
            ip: '0.0.0.0',
            port: 12345,
        },
        rootSerConfig: {
            serverId: 1,
            ip: '127.0.0.1',
            port: 12341,
        },
        nodeConfig: [
            {
                type: 1 /* NORMAL */,
                name: 'scene1',
                path: 'D:/code/words/server/sceneSer/nodeApp.js' //启动路径
            }, {
                type: 1 /* NORMAL */,
                name: 'scene2',
                path: ''
            }, {
                type: 2 /* MULTI */,
                name: 'dungeon',
                path: ''
            }, {
                type: 3 /* CHAT */,
                name: 'chat',
                path: ''
            }, {
                type: 4 /* TRADE */,
                name: 'trade',
                path: ''
            }],
        userSerConfig: {
            ip: '127.0.0.1',
            port: 12340,
            verification: 'asdfzxcv12345'
        },
        dbConfig: {
            dbName: 'words',
            port: 27017,
            host: 'localhost'
        }
    }
}
